<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>label标签的使用</title>
</head>
<body>
  <form action="">

   <label for="text">用户名: <input type="text" id="text"></label> <br>
 <label for="nan">性别：男<input type="radio" id="nan" name="sex"></label>
 <label for="nv">女<input type="radio" id="nv" name="sex"></label>
  </form>
</body>
</html>